/**   
 * @Title: TvProgram.java
 * @Package com.cityoneyes.bean
 * @Description: TODO
 * @author Rick
 * @date 2011-8-3 下午10:34:32
 * @version V1.0   
 */
package com.cityoneyes.bean;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @ClassName: TvProgram
 * @Description: 电视节目实体Bean
 * @author Rick
 * @date 2011-8-3 下午10:34:32
 */
@Entity
@Table(name="t_program")
public class TvProgram implements Serializable {

	private static final long serialVersionUID = 5718778386760036878L;
	
	@Id 
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="id")
	private int id;
	@Column(name="order_seq")
	private int prderSeq;
	@Column(name="program_date")
	private String programDate;
	@Column(name="program_name")
	private String programName;
	@Column(name="program_time")
	private String programTime;
	@ManyToOne(cascade = CascadeType.REFRESH, fetch = FetchType.LAZY)
	@JoinColumn(name = "id", insertable = false, updatable = false)
	private Tv tv;
	@Column(name="tv_name")
	private String tvName;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getPrderSeq() {
		return prderSeq;
	}
	public void setPrderSeq(int prderSeq) {
		this.prderSeq = prderSeq;
	}
	public String getProgramDate() {
		return programDate;
	}
	public void setProgramDate(String programDate) {
		this.programDate = programDate;
	}
	public String getProgramName() {
		return programName;
	}
	public void setProgramName(String programName) {
		this.programName = programName;
	}
	public String getProgramTime() {
		return programTime;
	}
	public void setProgramTime(String programTime) {
		this.programTime = programTime;
	}
	public Tv getTv() {
		return tv;
	}
	public void setTv(Tv tv) {
		this.tv = tv;
	}
	public String getTvName() {
		return tvName;
	}
	public void setTvName(String tvName) {
		this.tvName = tvName;
	}
}
